//
//  XJPaySuccessViewController.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/15.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJPaySuccessViewController.h"
//#import "XJHomeViewController.h"
#import "XJMainTabBarViewController.h"

@interface XJPaySuccessViewController ()
@property (weak, nonatomic) IBOutlet UILabel *tipsLabel;

@end

@implementation XJPaySuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tipsLabel.text = [NSString stringWithFormat:@"付款成功\n您可以在我的订单产看"];
    self.navigationItem.title = @"付款";
}

- (IBAction)clickGoHomeVCAction:(UIButton *)sender {
    XJLog(@"回首页");


    // 这只window 的根视图
//    UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
//
//    keyWindow.rootViewController = [[XJHomeViewController alloc] init];
    
//    UITabBarController *
//    UINavigationController
    
//    self.window.rootViewController = [[XJMainTabBarViewController alloc]init];


    
    UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
    keyWindow.rootViewController = [[XJMainTabBarViewController alloc]init];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
